package com.wdd.libarouter.impl

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.DegradeService
import com.blankj.utilcode.util.ToastUtils
import com.wdd.libarouter.config.ArouterPathConfig

/**
 *
 * @ProjectName:    OwnTool
 * @Package:        com.wdd.libarouter.impl
 * @ClassName:      DegradeServiceImpl
 * @Description:     自定义全局降级策略，当path找不到的时候
 * @Author:         王丹丹
 * @CreateDate:     2019/12/3 15:18
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/12/3 15:18
 * @UpdateRemark:   更新说明
 * @Version:        1.0
 */
@Route(path = ArouterPathConfig.DEGRAD_SERVICE_PATH)
class DegradeServiceImpl : DegradeService {
    override fun onLost(context: Context?, postcard: Postcard?) {
        ToastUtils.showShort("页面未找到")
    }

    override fun init(context: Context?) {
    }
}